package cc.admin.modules.graduate.service;

import cc.admin.common.api.vo.Result;
import cc.admin.modules.graduate.entity.ChoiceQuestions;
import cc.admin.modules.graduate.entity.DTO.DesignQuestionsListDto;
import cc.admin.modules.graduate.entity.DesignAnswerList;
import cc.admin.modules.graduate.entity.DesignQuestions;
import cc.admin.modules.graduate.entity.exportDesignModel;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;


/**
 * @Description: 算法设计与分析题主表
 * @Author: cc-admin
 * @Date:   2025-01-03
 * @Version: V1.0.0
 */
public interface IDesignQuestionsListService extends IService<DesignQuestionsListDto> {

    String saveDesignQuestions(DesignQuestionsListDto designQuestionsList,String objectId);

    List<DesignQuestions> getchildQuestions(String childIds);

    void updateChild(DesignQuestionsListDto designQuestionsList);

    void removeselfAndChild(String id);

     List<DesignAnswerList> getErrorDesign(String tab,String key);

    List<DesignQuestionsListDto> getNoVideoDesign(String tab);

    Result<?> importExcel(HttpServletRequest request, HttpServletResponse response, Class<DesignQuestionsListDto> designQuestionsListDtoClass);

    ModelAndView exportXls(HttpServletRequest request, String choiceQuestionIds, String catalog, Class<DesignQuestionsListDto> DesignQuestionsListClass, String 应用题);

    ModelAndView exportXlsModel(Class<exportDesignModel> exportDesignModelClass, String 导入模板);
}
